package cn.iocoder.yudao.module.pay.splitting.dao;

import cn.iocoder.yudao.framework.business.basic.dao.mapper.CoreMapper;
import cn.iocoder.yudao.framework.business.basic.dao.query.CoreLambdaQueryWrapper;
import cn.iocoder.yudao.module.pay.splitting.pojo.po.SplittingMerchant;
import org.apache.ibatis.annotations.Mapper;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * Mapper 接口
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/05/17
 */
@Mapper
public interface SplittingMerchantMapper extends CoreMapper<SplittingMerchant> {

    default SplittingMerchant selectByMobile(String mobile) {
        CoreLambdaQueryWrapper<SplittingMerchant> wrapper = new CoreLambdaQueryWrapper<>();
        wrapper.eq(SplittingMerchant::getPhone, mobile);
        wrapper.limitN(1);
        return selectOne(wrapper);
    }

}
